Enable correctly dialog buttons sensitivity when the anonymous option is
authorCarlos Garnacho <carlos@imendio.com>
Tue, 27 May 2008 00:12:33 +0000 (00:12 +0000)
committerCarlos Garnacho <carlosg@src.gnome.org>
Tue, 27 May 2008 00:12:33 +0000 (00:12 +0000)
2008-05-27  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Enable
        correctly dialog buttons sensitivity when the anonymous option is
        enabled by default. Bug #531865.

svn path=/trunk/; revision=20183

ChangeLog
gtk/gtkmountoperation.c

index daf74c9d63cba3d2c5b7306b0f3109bfc3f35b79..e0a16dc4d6e7ead211101bb433e0470699bc2f43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-27  Carlos Garnacho  <carlos@imendio.com>
+
+       * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Enable
+       correctly dialog buttons sensitivity when the anonymous option is
+       enabled by default. Bug #531865.
+
 2008-05-27  Carlos Garnacho  <carlos@imendio.com>
 
        * gtk/gtkmountoperation.c (gtk_mount_operation_ask_password): Set
index ebd6cbf03137c39cab01d3dea81c784b4399c34a..3b8dff049d60fcb4ab33f6e597f83220d647a83d 100644 (file)
@@ -615,7 +615,12 @@ gtk_mount_operation_ask_password (GMountOperation   *mount_op,
                     G_CALLBACK (pw_dialog_got_response), operation);
 
   if (can_anonymous)
-    gtk_widget_set_sensitive (priv->entry_container, FALSE);
+    {
+      /* The anonymous option will be active by default,
+       * ensure the toggled signal is emitted for it.
+       */
+      gtk_toggle_button_toggled (GTK_TOGGLE_BUTTON (priv->anonymous_toggle));
+    }
   else if (! pw_dialog_input_is_valid (operation))
     gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, FALSE);